<div class="page-title">
	<h1>首页轮播</h1>
</div>
<!-- Gallery with captions -->
<div class="row">
	<div class="col-lg-12">
		<div class="widget-container fluid-height">
			<div class="heading">
				<i class="icon-picture"></i>
				Captions
				
				<a>添加</a>
			</div>
			<div class="widget-content padded">
				<ul class="gallery-grid clearfix">
					
					
<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
			'id'=>'grid',
			'dataProvider' => $dataProvider,
			'pagerCssClass'=>'pagination pull-right',
			'columns'=>array(
				array(
						'name'=>"id"
				),
				array(
						'type'=>'raw',
						'name' => 'Banner_Img',
						'value'=>'CHTML::image($data->imgUrl,"",array("style"=>"height: 150px;"))'
				),
				array(
					'type' => 'raw',
					'name'=>"Banner_Label",
					),
				array(
					'type' => 'raw',
					'name' => 'Banner_Text',
					),
				array(
					'name' => 'Banner_Url',
					),
				
				array(
					'class'=>'CButtonColumn',
					'header'=>'操作',
					'template' => '{update}{delete}',
					),
				),
		)); 
?>
					
					
					
					<?php if(0):?>
					<?php foreach ($dataProvider -> data as $_model):?>
					<li>
						<a class="delete" href="#">×</a>
						<figure>
							<a href="<?php echo $_model -> Banner_Url?>" target="_black">
								<img src="<?php echo $_model -> imgUrl?>">
							</a>
							<div class="caption">
								<h3><?php echo $_model -> Banner_Label?></h3>
								<span><?php echo $_model -> Banner_Text?></span>
							</div>
						</figure>
					</li>
					<?php endforeach;?>
					<?php endif;?>
					
				</ul>
			</div>
		</div>
	</div>
</div>